package model

import "gorm.io/gorm"

type Dram struct {
	gorm.Model
	UserId       int64  `gorm:"type:int;not null;commit:'用户Id'"`
	Name         string `gorm:"type:varchar(150);not null;commit:'剧集名称'"`
	VideoId      int64  `gorm:"type:int;not null;commit:'视频Id'"`
	Dsc          string `gorm:"type:varchar(150);not null;commit:'描述'"`
	LikeCount    int64  `gorm:"type:int;default:0;commit:'点赞数量'"`
	CollectCount int64  `gorm:"type:int;default:0;commit:'收藏数量'"`
	CommentCount int64  `gorm:"type:int;default:0;commit:'发布数量'"`
	TypeId       int64  `gorm:"type:int;default:0;commit:'类型Id'"`
	TagId        int64  `gorm:"type:int;default:0;commit:'标签Id'"`
	DramCount    int64  `gorm:"type:int;default:0;commit:'剧集总集数'"`
	DramTime     int64  `gorm:"type:int;default:0;commit:'剧集时长'"`
	Status       int64  `gorm:"type:int;default:0;commit:'视频状态:1-下架,2-已上线,3-驳回'"`
	MemberStatus int64  `gorm:"type:int;default:0;commit:'会员状态: 0-不是会员,1-是会员'"`
}
type Append struct {
	gorm.Model
	UserId int64 `gorm:"type:int;not null;commit:'用户Id'"`
	DramId int64 `gorm:"type:int;not null;commit:'剧集Id'"`
}
type CollectAdd struct {
	gorm.Model
	UserId   int64 `gorm:"type:int;not null;commit:'用户Id'"`
	DramId   int64 `gorm:"type:int;not null;commit:'剧集Id'"`
	DramTime int64 `gorm:"type:int;default:0;commit:'剧集时长'"`
}
type Record struct {
	gorm.Model
	UserId       int64  `gorm:"type:int;not null;commit:'用户Id'"`
	Name         string `gorm:"type:varchar(150);not null;commit:'剧集名称'"`
	DramId       int64  `gorm:"type:int;not null;commit:'剧集Id'"`
	DramTime     int64  `gorm:"type:int;default:0;commit:'剧集时长'"`
	MemberStatus int64  `gorm:"type:int;default:0;commit:'会员状态: 0-不是会员,1-是会员'"`
}
